package com.example.logdemo.log;

import java.lang.annotation.*;

/**
 *
 *
 * @author zhiyuan
 * @date 2025/10/28
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Loggable {
    /**
     * Whether to log method arguments.
     */
    boolean logArgs() default true;

    /**
     * Whether to log the return value.
     */
    boolean logResult() default true;

    /**
     * Optional business tag to group logs.
     */
    String tag() default "";
}
